package queuedomn;

import java.util.LinkedList;
import java.util.Queue;


/**
 * @Description
 */

public class Test {
    public static void main(String[] args) {
        Queue<Integer> queue = new LinkedList<>();
        queue.offer(12);
        queue.offer(23);
        queue.offer(34);
        queue.offer(45);
        System.out.println(queue.poll());
        System.out.println(queue.peek());

    }
}
